﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="webXW.aspx.cs" Inherits="ShowPage_webCL" Title="科技成果超市---新闻信息" %>

<%@ Register Src="../UserControl/RecommendInfo.ascx" TagName="RecommendInfo" TagPrefix="uc2" %>

<%@ Register Src="../UserControl/InfoSearch.ascx" TagName="InfoSearch" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<script runat="server">
    public static string NoHtm(string requeststr)
    {  
        System.Text.RegularExpressions.Regex reghtm = new System.Text.RegularExpressions.Regex(@"<.+?>");
        requeststr = reghtm.Replace(requeststr, "");
        requeststr = requeststr.Replace("&nbsp;", "");
        requeststr = requeststr.Replace("<br>;", "");
        requeststr = requeststr.Replace("<p>", "");
        requeststr = requeststr.Replace("</p>", "");
        requeststr = requeststr.Replace("\n", "");
        requeststr = requeststr.Replace("\r", "");
        //这个去的才够彻底啊

       string x = requeststr.Trim().Length > 100 ? requeststr.Trim().Substring(0, 100) + "......" : requeststr.Trim();
       return x;
     
    }
</script>
    <table cellpadding="0" cellspacing="0" width="778" bgcolor="#ffffff" background="images/beijing.gif">
        <tr>
            <td align="center" valign="top" width="216" style="height: 1016px">
                <table cellpadding="0" cellspacing="0" width="59">
                    <tr>
                        <td valign="top">
                            <img height="28" src="images/left1.GIF" width="213" /></td>
                    </tr>
                    <tr>
                        <td align="center" bgcolor="#fffef6" height="166" valign="middle">
                            <uc2:RecommendInfo ID="RecommendInfo1" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <img height="30" src="images/left2.gif" width="213" /></td>
                    </tr>
                    <tr>
                        <td background="../images/xiaobei.gif" height="105">
                            <uc1:InfoSearch ID="InfoSearch1" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <img height="29" src="images/left3.gif" width="214" /></td>
                    </tr>
                    <tr>
                        <td align="center">
                            <table cellpadding="0" cellspacing="0" height="149" width="194">
                                <tr>
                                    <td align="left" class="huise" width="194">
                     <table cellpadding="0" cellspacing="0" width="194" 
                         style="height: 145px; vertical-align:top; margin-right: 1px;">
                         <tr>
                             <td align="left" class="huise1" width="194">
                                                    <span class="hongcu">佛山市高明区（中国科学院）新材料专业中心
</span><br />
                                                    <table bgcolor="#cc0000" cellpadding="0" cellspacing="0" height="3" width="194">
                                                    </table>
                                                    <br />
                                                   地址: 广东省佛山市高明区荷城街道富湾兴富路13号 <br />
                                                 联系人：李先生     <br />
                                                  电话:0757－88810003<br />
                                               Email：fsgmnmc@163.com <br />
                                              邮编：528531    <br /> 
                                               传真:0757－88810002
                                                

                                                </td>
                         </tr>
                     </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
            <td align="center" style="color: #000000; width: 560px; height: 1016px;" valign="top" class="txt">
                <table cellpadding="0" cellspacing="0" width="10">
                    <tr>
                        <td>
<img border="0" height="28" src="../images/xw.gif" width:565px/></td>
                    </tr>
                    
                    <tr style="color: #000000">
                        <td height="0">
                        </td>
                    </tr>
                </table>
                <table cellpadding="0" cellspacing="0" style="color: #000000" width="10">
                   <tr style="color: #000000">
                        <td height="0">
                            <asp:DataList ID="dlFree" runat="server" 
                                style="font-weight: 700; margin-left: 0px; margin-right: 25px;" Width="483px">
                                <ItemTemplate>
                                    <table align="center" cellpadding="0" cellspacing="0"">
                                        <tr>
                                            <td class="huise"  style="word-break:break-all; overflow:hidden ">
                                            <span class="shenlancu"><img src="images/gif-0370.jpg" alt="" width="22" height="7" />『<%# DataBinder.Eval(Container.DataItem,"type") %>』<img src="images/j0826.gif" width="11" height="9" /></span>
                                             <span
                                                    class="banhui">
                                                      <a class="huise" style=" color:Red"
              href="../ShowLeaguerInfo.aspx?id=<%#DataBinder.Eval(Container.DataItem,"id") %>"><%# DataBinder.Eval(Container.DataItem,"title") %></a>&nbsp;&nbsp;&nbsp;&nbsp;[
                                                        <%# Convert.ToDateTime(DataBinder.Eval(Container.DataItem,"date")).ToShortDateString() %>
                                                        ]
                                                    <br />
                                                </span><span class="banhui">&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
                                                 
      
                                                   <%#
                                                  NoHtm(DataBinder.Eval(Container.DataItem, "info").ToString()) 
                                                  %>

                                                  </td>
                                        </tr>
                                          <tr><td><img src="../images/10086.jpg" width="560px"</td></tr>    
                                    </table>
                                </ItemTemplate>
                            </asp:DataList>
                        </td>
                    </tr>
                
                </table>
                当前页码为［<asp:Label ID="lblCurrentPage" runat="server" Text="1"></asp:Label>］页 总页码［<asp:Label
                    ID="lblSumPage" runat="server" Text="0"></asp:Label>］页
                <asp:LinkButton ID="lnkBtnFirst" runat="server" Font-Underline="False" OnClick="lnkBtnFirst_Click"> 第一页 </asp:LinkButton>
                <asp:LinkButton ID="lnkBtnPrevious" runat="server" Font-Underline="False" OnClick="lnkBtnPrevious_Click"> 上一页 </asp:LinkButton>
                <asp:LinkButton ID="lnkBtnNext" runat="server" Font-Underline="False" OnClick="lnkBtnNext_Click"> 下一页 </asp:LinkButton>
                <asp:LinkButton ID="lnkBtnLast" runat="server" Font-Underline="False" OnClick="lnkBtnLast_Click"> 末一页 </asp:LinkButton></td>
        </tr>
    </table>
</asp:Content>
